Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More persistent test page #1529

Merged
merged 4 commits into from
Mar 10, 2019
Merged

Conversation

RunDevelopment
Copy link
Member

@RunDevelopment RunDevelopment commented Aug 17, 2018

This PR makes the test page remember the language and code last used.

The language is stored in the URL hash similar to the download page.
The code last used is stored in sessionStorage like the current theme.

This feature has been tested in Chrome, Firefox, and Opera.
Edge has severe problems with sessionStorage and localStorage when the test page is opened from the local file system. But it does work when served from a (local) server.

RunDevelopment and others added 2 commits August 17, 2018 15:14
test.html Outdated Show resolved Hide resolved
test.html Outdated Show resolved Hide resolved
@mAAdhaTTah
Copy link
Member

If Edge has problems w/ local/session storage, do we need try / catch's for it?

@RunDevelopment
Copy link
Member Author

All done.
I choose to use pushState, so you can switch between languages by going back and forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants